from django.urls import path
from . import views

# Django 2.0 新增的,方便写 url route
# https://docs.djangoproject.com/en/2.0/ref/urls/#django.urls.path

urlpatterns = [
    path('register/',
        views.AccountCreateView.as_view(),
        name='account_create'
    ),
    path('profile/',
        views.AccountProfileView.as_view(),
        name='account_profile'
    ),
    path('login/',
        views.AccountLoginView.as_view(),
        name='account_login'
    ),
    path('logout/',
        views.AccountLogoutView.as_view(),
        name='account_logout'
    ),
    path('sms/',
        views.SmsCreateView.as_view(),
        name='account_phone_sms'
    ),
    path('info/',
         views.AccountInfoView.as_view(),
         name='account_info'),

    path('changepwd/',
         views.AccountChangePwdView.as_view(),
         name='account_change_pwd'),

    path('resetpwd/',
         views.AccountResetPwdView.as_view(),
         name='account_reset_pwd'),

    path('avatar/',
         views.AccountAvatarView.as_view(),
         name='account_avatar'),

    path('update_class/',
         views.AccountUpdateClassView.as_view(),
         name='account_update_class')

]
